﻿namespace SharpTrainer.DP.Proxy.Generic
{
    public class Proxy : Subject 
    { 
        RealSubject realSubject; 
        public override void Request() 
        { 
            // Use 'lazy initialization' 
            if (realSubject == null) 
            { 
                realSubject = new RealSubject(); 
            } 
            
            realSubject.Request(); 
        } 
    }
}
